package com.simple.simple_view.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 视频表(Video)表实体类
 *
 * @author makejava
 * @since 2023-10-26 16:08:13
 */
@Data
@TableName("video")
public class Video {
    //视频id
    @TableId
    private Long id;

    //视频描述
    private String text;
    //用户id
    private Long userId;
    //视频链接
    private String url;
    //视频类别
    private Integer category;
    //视频当前状态(0：审核通过，1：未通过，2：审核中)
    private Integer status;
    //点赞数
    private Long likeCount;
    //评论数量
    private Long commentCount;
    //收藏量
    private Long favoriteCount;
    //转发量
    private Long forwardCount;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //删除时间
    @TableLogic(value = "null")//用于逻辑删除
    private Date deleteTime;

}
